package org.jeecg.modules.internship.entity.vo;

import lombok.Data;
import org.jeecg.modules.internship.entity.Internship;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelVerify;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * 类的作用
 *
 * @author liujiamiao
 * @email 2544296058@qq.com
 * @date 2020-10-25 21:26
 */
@Data
public class InternshipVo implements Serializable {

//    @Excel(name="头像",width=25,type=2,height = 25)
//    private String icon;

    @Excel(name="姓名",width = 15)
    @ExcelVerify(notNull = true,regex = "^[\u4e00-\u9fa5]{0,5}",regexTip = "名字必须为汉字")
    private String name;

    @Excel(name = "抖音号",width = 20)
    @ExcelVerify(notNull = true)
    private String douyin;

    @Excel(name = "性别" ,width = 10,replace={"男生_1","女生_2"})
    @ExcelVerify(notNull = true)
    private Integer sex;

    @Excel(name = "身份证号",width = 25)
    @ExcelVerify(notNull = true,regex = "(^\\d{18}$)|(^\\d{15}$)",regexTip = "{internship.sfzMsg}")
    private String sfzId;

    @Excel(name = "出生日期",width = 20,format  = "yyyy-MM-dd")
    @ExcelVerify(notNull = true)
    private Date birthDate;

    @Excel(name = "年龄",width = 10)
    @ExcelVerify(notNull = true)
    private Integer age;

    @Excel(name = "民族",width = 15)
    @ExcelVerify(notNull = true)
    private String nationString;

    @Excel(name = "政治面貌",width = 15)
    @ExcelVerify(notNull = true)
    private String politicsStatusString;

    @Excel(name = "银行账号",width = 25)
    @ExcelVerify(notNull = true,regex = "^([1-9]{1})(\\d{14}|\\d{18})$",regexTip = "{internship.bankAccount}")
    private String bankAccount;

    @Excel(name = "开户银行",width = 25)
    @ExcelVerify(notNull = true)
    private String openAccount;

    @Excel(name = "实习开始时间",width = 20,format  = "yyyy-MM-dd")
    @ExcelVerify(notNull = true)
    private Date startDate;

    @Excel(name = "实习结束时间",width = 20,format  = "yyyy-MM-dd")
    private Date endDate;

    @Excel(name = "紧急联系人名字",width = 15)
    @ExcelVerify(notNull = true,regex = "^[\u4e00-\u9fa5]{0,}$",regexTip = "名字必须为汉字")
    private String emergencyContact;

    @Excel(name = "紧急联系人的电话",width = 20)
    @ExcelVerify(notNull = true,regex = "^[1][3,4,5,6,7,8,9][0-9]{9}$",regexTip = "{internship.phone}")
    private String emergencyPhone;

    @Excel(name = "紧急联系人的邮箱",width = 25)
    @ExcelVerify(notNull = true,isEmail = true)
    private String emergencyEmail;

    @Excel(name = "手机号",width = 20)
    @ExcelVerify(notNull = true,regex = "^[1][3,4,5,6,7,8,9][0-9]{9}$",regexTip = "{internship.phone}")
    private String phone;

    @Excel(name = "QQ号",width = 20)
    @ExcelVerify(notNull = true,regex = "^[1-9][0-9]{4,14}$",regexTip = "{internship.qq}")
    private String qq;


    @Excel(name = "微信号",width = 20)
    @ExcelVerify(notNull = true,regex = "^[a-zA-Z]{1}[a-zA-Z\\d_]{5,}$",regexTip = "{internship.vx}")
    private String vx;

    @Excel(name = "有线网卡MAC",width = 25)
    @ExcelVerify(regex = "(([a-fA-F0-9]{2}:)|([a-fA-F0-9]{2}-)){5}[a-fA-F0-9]{2}",regexTip = "{internship.MAC}")
    private String wiredMAC;

    @Excel(name = "无线网卡MAC",width = 25)
    @ExcelVerify(regex = "(([a-fA-F0-9]{2}:)|([a-fA-F0-9]{2}-)){5}[a-fA-F0-9]{2}",regexTip = "{internship.MAC}")
    private String wirelessMAC;

    @Excel(name = "籍贯",width = 20)
    @ExcelVerify(notNull = true)
    private String nativePlace;

    @Excel(name = "居住地",width = 25)
    @ExcelVerify(notNull = true)
    private String address;

    @Excel(name = "所属学校",width = 20)
    @ExcelVerify(notNull = true)
    private String school;

    @Excel(name = "学历",width = 15)
    @ExcelVerify(notNull = true)
    private String educationString;

    @Excel(name = "备注",width = 30)
    private String ps;

}
